package io.github.houhanzhi.hhregistry.cluster;

import io.github.houhanzhi.hhregistry.model.InstanceMeta;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;

import java.util.Map;

/**
 * 所有数据中心的数据快照
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Snapshort {

    LinkedMultiValueMap<String, InstanceMeta> REGISTRY;
    Map<String, Long> VERSIONS;
    Map<String, Long> TIMESTAMPS;
    long version;


}
